package ar.edu.itba.it.pdc.httpParser;

import ar.edu.itba.it.pdc.httpParser.interfaces.ImputCharGetter;

public class ImputCharGetterImplTesting implements ImputCharGetter{
	
	private String imput;
	
	private int pos = 0;
	
	public ImputCharGetterImplTesting(String imput){
		this.imput = imput;
	}
	
	@Override
	public boolean end() {
		return pos == imput.length();
	}

	@Override
	public Byte read() {
		if(pos == imput.length() ){
			return null;
		}
		return (byte)imput.charAt(pos++);
	}
	

}
